package com.project.service;

import com.project.bean.CutPageBean;
import com.project.bean.MessageBean;

import java.time.LocalDate;
import java.util.List;

public interface IMessageService {
    public void add(MessageBean message);
    public void del(int id);
    public void update(int id, String tel, String post);
    public List<MessageBean> findAll();
    public MessageBean findById(int id);
    public List<MessageBean> findByName(String name);
    public List<MessageBean> findByBirth(LocalDate startDate, LocalDate endDate);
    public void addMore(List<MessageBean> list);
    public List<MessageBean> findByItem(String name, String post, LocalDate startDate, LocalDate endDate);
    public CutPageBean<MessageBean> findAll(int pageNO);
    public CutPageBean<MessageBean> cutByItem(int pageNO,String name, String post, LocalDate startDate, LocalDate endDate);
}
